import {
  WHETHER_OPTION,
  STOCK_ATTR_OPTION,
  DEMAND_TYPE_OPTION,
  TIMELINESS_OPTION,
  SKU_LABEL_TYPE_OPTIONS,
  INQUIRY_DEMAND_TYPE_OPTION,
  INQUERY_TIMEOUT_REASON_OPTION,
  TRANSFERNORMAL_OPTION
} from '@sourcing/constants';
export const TAB_LIST = [
  { title: '全部状态', name: null },
  { title: '待受理', name: '10' },
  { title: '已受理', name: '20' },
  { title: '询价中', name: '25' },
  { title: '已完成', name: '40' },
  { title: '询价异常', name: '30' },
  { title: '询价取消', name: '15' }
]
export const FORM_ITEMS = [
  {
    prop: 'billNo',
    label: '单据号',
    type: 'input'
  },
  {
    prop: 'handleDeptName',
    label: '采购询价部门',
    type: 'input'
  },
  {
    prop: 'billDate',
    label: '单据日期',
    type: 'dateRangePicker'
  },
  {
    prop: 'creatorName',
    label: '制单人',
    type: 'input'
  },
  {
    prop: 'saleCompanyName',
    label: '销售公司',
    type: 'input'
  },
  {
    prop: 'productCode',
    label: '商品代码',
    type: 'input'
  },
  {
    prop: 'skuName',
    label: '商品名称',
    type: 'input'
  },
  {
    prop: 'purchaseOrderGoodsName',
    label: '采购询价人',
    type: 'input'
  },
  {
    prop: 'inquiryStatusExt',
    label: '需求状态',
    type: 'select',
    multiple: true,
    options: INQUIRY_DEMAND_TYPE_OPTION
  },
  {
    prop: 'firstTransferName',
    label: '首次转派人',
    type: 'input'
  },
  {
    prop: 'expectInquiryDatetime',
    label: '要求采购询价时间',
    type: 'dateRangePicker'
  },
  {
    prop: 'salesmanName',
    label: '业务员',
    type: 'input'
  },
  {
    prop: 'serviceProviderName',
    label: '指定渠道名称',
    type: 'input'
  },
  {
    prop: 'isProcedures',
    label: '是否走手续',
    type: 'select',
    options: WHETHER_OPTION
  },
  {
    prop: 'isServiceProvider',
    label: '是否服务商',
    type: 'select',
    options: WHETHER_OPTION
  },
  {
    prop: 'stockAttr',
    label: '存量属性',
    type: 'select',
    options: STOCK_ATTR_OPTION
  },
  {
    prop: 'demandType',
    label: '需求类型',
    type: 'select',
    options: DEMAND_TYPE_OPTION
  },
  {
    prop: 'targetDate',
    label: '定标完成时间',
    type: 'dateRangePicker'
  },
  {
    prop: 'categoryCode',
    label: '分类',
    type: 'category'
  },
  {
    prop: 'timely',
    label: '报价及时性',
    type: 'select',
    options: TIMELINESS_OPTION
  },
  {
    prop: 'timeoutReasons',
    label: '询价不及时原因',
    type: 'select',
    options: INQUERY_TIMEOUT_REASON_OPTION
  },
  {
    prop: 'customerName',
    label: '客户名称',
    type: 'input',
  },
  {
    prop: 'transferNormal',
    label: '是否关联商品',
    type: 'select',
    options: TRANSFERNORMAL_OPTION
  },
  {
    prop: 'firstCategoryCode',
    label: '一级分类',
    type: 'select',
    filterable: true,
    options: []
  },
  {
    prop: 'skuLabelType',
    label: '价格准确性',
    type: 'select',
    options: SKU_LABEL_TYPE_OPTIONS
  },
]
